package cn.wangxl.group.rpc.rpcEntity;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * @Deacription RpcResponse
 * @Author 20112128
 * @Date 2020/9/18 9:50
 **/
@Data
public class RpcResponse implements Serializable {

    private RpcResponseStatus status;

    private Map<String,String> header;

    private Class returnType;

    private Object returnValue;

    private Exception exception;

    public RpcResponse(RpcResponseStatus status) {
        this.status = status;
    }

    public RpcResponse() {
    }
}
